@charset "UTF-8";
@component-namespace template {
  /* 页面内容区域布局*/
  @b page{
    position: relative;
  }
  @b page-location{
    position: absolute;
    display: inline-block;
    height: 36px;
    line-height: 36px;
    z-index: 1;
    top: 0;
    right: 0;
    display:none;
    .el-breadcrumb {
      line-height: 36px;
    }
  }
  /* 左右分栏-树结构在tab外面 */
  @b left-tree {
    float: left;
    width: 300px;
    padding: var(--theme-padding-base) var(--theme-padding-large) var(--theme-padding-large);
    background-color: var(--tree-background);
    + .el-tabs {
      margin-left: 300px;
      .el-tabs__header {
        padding: var(--theme-padding-base) var(--theme-padding-base) 0!important;
      }
      .el-tabs__content {
        padding: var(--theme-padding-base) var(--theme-padding-base) var(--theme-padding-large)!important;
      }
    }
& .el-tree-node__content>.el-checkbox {
 vertical-align: top;margin-top: -1px;
  }
&  .el-tree-node__content>.el-tree-node__expand-icon{
   /* margin-top:-3px; */
  }
    .template-tree-title {
      margin: 0 0 var(--theme-margin-small)  0;
      font-weight: bold;
    }
  }
  /* /页面内容区域布局*/

  /*带组织树（或左菜单栏目）布局*/
  @b layout {
    @utils-clearfix;
    background-color: #fff;
    padding:var(--tab-padding-middle);
   }

  @b layout-left {
    width: 280px;
    float:left;
    height: auto;
    .template-left-tree {
      float: left;
      margin-top: -10px;
      margin-left: -20px;
      margin-bottom: -20px;
    }

    & ~ .template-layout-right {
        margin-left: 290px;
        height: auto;
        .el-col-20{
            width:80.33333%
        }
      }
  }

  /* /带组织树（或左菜单栏目）布局*/
}


@component-namespace tmp{
  @b title {
    font-size: var(--theme-font-size-small);
   margin-bottom: var(--theme-margin-small);
  }
  @b title__gray{
    font-size: var(--theme-font-size-base);
    margin-bottom: var(--theme-margin-small);
    padding: 0 var(--theme-padding-base);
    background-color: var(--theme-background-color-primary);
    line-height: 40px;
  }
  /* 表单提示语 */
  @b tips{
    line-height: 20px;
  }
  @b mark{
    font-size: var(--theme-font-size-small);
    color: var(--theme-color-primary);
    border:1px solid var(--theme-border-color-primary);
    background: var(--color-white);
    padding:0 2px;
    line-height: 16px;
  }
  @b dialog{
    @e modal{
      width:100%;
      height:100%;
      background: rgba(0,0,0,0.5);
      position: fixed;
      top:0;
      left:0;
      right:0;
      bottom:0;
      z-index: 1;
    }
  }

  @b cell {
    @e buttons {
      .el-button--text{
        padding-top:0;
        padding-bottom: 0;
      }
    .el-button+.el-button {
      margin-left: 0;
    }
    }
  }

  @b table-cell {
    display: table-cell;
    vertical-align: top;
  }

  /* 页面tab菜单 */
  @b page {
    @e header{
      position: relative;
      font-size: 0;
      background: #fff;
      padding: var(--theme-padding-base) var(--theme-padding-large) 0;
      border-bottom: 1px solid var(--theme-border-color-primary);
      & .tmp-page__menu{
        margin-bottom: -1px;
      }
      & .tmp-page__menu-item {
          cursor: pointer;
          height: 36px;
          box-sizing: border-box;
          line-height: 36px;
          display: inline-block;
          list-style: none;
          font-size: var(--theme-font-size-base);
          position: relative;
          padding: 0 var(--theme-padding-middle);
          background: var(--color-white);
          color:var(--theme-font-color-primary);
          border: 1px solid transparent;
          border-bottom: 1px solid var(--theme-border-color-primary);
        @when active {
          border: 1px solid var(--theme-border-color-primary);
          border-bottom-color: var(--color-white);
           &:after{
            position: absolute;
            top: -1px;
            left: 0;
            content: '';
            display: block;
            width: 100%;
            border-top: 3px solid var(--theme-color-primary);
            border-radius: var(--border-radius-base) var(--border-radius-base) 0 0;
          }
        }
      }
    }
    @e content{
      @utils-clearfix;
      padding:var(--tab-padding-middle);
      background: var(--color-white);
    }
  }
  /* /end页面tab菜单 */

/* 页面左侧带菜单 */
  @b sider {
    position: relative;
    min-height: 200px;
    @e tab{
      position: absolute;
      top:0;
      left:0;
      width: 50px;
      z-index: 4;
      & > a {
          cursor: pointer;
          display: block;
          text-align: center;
          color: var(--theme-font-color-primary);
          line-height: 16px;
          padding: var(--theme-padding-small) 0;
          background: var(--theme-background-color-primary);
          margin-bottom: var(--theme-margin-small);
          border:1px solid var(--theme-border-color-primary);
        & span {
            display: block;
        }
        &.is-active{
          border-left: 3px solid var(--theme-color-primary);
         }
       }
    }
    @e content {
      padding-left: 60px;
    }
    @e list {
      list-style-type:none;
      padding:0;
      margin:0;
    }
    @e item {
      margin-top: var(--theme-margin-base);
      &:first-child {
         margin-top: 0;
       }
    }
  }
/* /end 页面左侧带菜单 */
}
.el-tab-pane .template-layout,
.template-layout .tmp-page__content,
.el-tab-pane .tmp-page__content {
  padding:0;
}
[v-cloak] {
  display: none;
}

.text-right > .el-input__inner{
  text-align: right;
}
.is-link {
  text-decoration: underline;
  cursor: pointer;
  &:hover{
     text-decoration: underline;
   }
}
/* 暂无数据，空数据 */
.is-empty{
  padding: var(--theme-padding-base);
  color: var(--theme-font-color-secondary);
  font-size: var(--theme-font-size-small);
  text-align: center;
}
.has-tabs.el-dialog{
 & .el-dialog__body{
    background-color: var(--theme-background-color-primary);
  padding:0;
 }
& .el-dialog__footer{
    padding-top: var(--theme-padding-base);
  }
}

/*
表单提示语独占一行*/
.el-form-grid.is-block{
  &.text-info,
  &.text-success,
  &.text-danger,
  &.text-warning{
   line-height: 20px;
  }
}
/* 单选按钮组按钮间距 */
.spacing-button{
  .el-radio-button{
    margin-right: var(--theme-margin-small);
  }
  .el-radio-button .el-radio-button__inner{
    border-radius: var(--border-radius-small);
    border-left: 1px solid var(--theme-border-color-primary);
    background-color: var(--theme-background-color-secondary);
    border-color:var(--theme-background-color-secondary);
    color: var(--color-white);
    padding:8px 10px;
  }
  .el-radio-button__orig-radio:checked + .el-radio-button__inner{
    border-left: 1px solid var(--theme-color-primary);
    background-color: var(--theme-color-primary);
    border-color:var(--theme-color-primary);
  }
  .el-radio-button:first-child .el-radio-button__inner {
    border-radius: var(--border-radius-small);
  }
  .el-radio-button:last-child .el-radio-button__inner {
    border-radius: var(--border-radius-small);
  }
}
/* 表单内容只有纯文本时的高度为20px */
.el-form-item.form-text{
  margin-bottom: 0;
  & .el-form-item__label {
    padding: 4px 0 4px 0;
  }
  & .el-form-item__content {
    line-height: 20px;
  }
}
.is-pointer{
  cursor: pointer;
}
.ellipsis {
 @utils-ellipsis;
  width:100%;
}
